Servebolt\Optimizer\FullPageCache\FullPageCacheHeaders C

Total Complexity 108
Dependencies 5
Dependents 3
Total lines 597
Lines of code 290
Logical lines of code 179
Comment lines 210
Methods 27
Properties 8

Methods 27

Method Rating Maintainability Complexity Lines of code
setHeaders()
D
35 34 76
getPostTypesToCache()
S
61 6 11
isAuthenticatedUser()
S
55 5 20
header()
S
57 5 18
maybeFixPostTypeArrayStructure()
S
57 5 17
shouldSetCacheHeaders()
S
70 5 6
isWoocommerceCachePage()
S
76 5 3
getQueriedObject()
S
59 4 14
shouldCacheArchive()
S
62 4 11
cacheHeaders()
S
56 3 17
isWoocommerceNoCachePage()
S
77 4 3
getDefaultPostTypesToCache()
S
62 3 12
getAvailablePostTypesToCache()
S
62 3 11
getTtl()
S
70 3 6
cacheActiveForPostType()
S
66 3 9
__construct()
S
68 2 7
printHeader()
S
69 2 7
noCacheHeaders()
S
67 2 8
mock()
S
66 2 9
cacheAllPostTypes()
S
80 1 3
lastCall()
S
76 1 4
htmlCacheCacheablePostTypesOptionKey()
S
81 1 3
setCacheablePostTypes()
S
78 1 3
getMockHeaders()
S
80 1 3
shouldDebug()
S
79 1 3
setHeaderAlreadySetState()
S
81 1 3
init()
S
80 1 3